Exercise 5:
a. Missing : on line 1
b. Missing ; on line 7

Exercise 8:
setX is a protected member of classA and cannot be used in int main()

exercise 10:
2 This is the base class
Derived class: 7
Hello base 10